<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>后台主页</title>
<head>
    <link href="__PUBLIC__/assets/css/dpl-min.css" rel="stylesheet" type="text/css"/>
    <link href="__PUBLIC__/assets/css/bui-min.css" rel="stylesheet" type="text/css"/>
    <link href="__PUBLIC__/assets/css/main-min.css" rel="stylesheet" type="text/css"/>

    <style type="text/css">
        body{margin:0;padding:0;overflow-x:hidden;}
        html, body{height:100%;}
        img{border:none;}
        *{font-family:'微软雅黑';font-size:12px;color:#626262;}
        dl,dt,dd{display:block;margin:0;}
        a{text-decoration:none;}

        #bg{background-image:url(__PUBLIC__/images/content/dotted.png);}
        .container{width:100%;height:100%;margin:auto;}
        /*left*/
        .leftsidebar_box{width:160px;height:auto !important;overflow:visible !important;position:fixed;height:100% !important;background-color:#3992d0;}
        .line{height:2px;width:100%;background-image:url(__PUBLIC__/images/left/line_bg.png);background-repeat:repeat-x;}
        .leftsidebar_box dt{padding-left:40px;padding-right:10px;background-repeat:no-repeat;background-position:10px center;color:#f5f5f5;font-size:14px;position:relative;line-height:48px;cursor:pointer;}
        .leftsidebar_box dd{background-color:#317eb4;padding-left:40px;}
        .leftsidebar_box dd a{color:#f5f5f5;line-height:20px;}
        .leftsidebar_box dt img{position:absolute;right:10px;top:20px;}
        .system_log dt{background-image:url(__PUBLIC__/images/left/system.png)}
        .custom dt{background-image:url(__PUBLIC__/images/left/custom.png)}
        .channel dt{background-image:url(__PUBLIC__/images/left/channel.png)}
        .app dt{background-image:url(__PUBLIC__/images/left/app.png)}
        .cloud dt{background-image:url(__PUBLIC__/images/left/cloud.png)}
        .syetem_management dt{background-image:url(__PUBLIC__/images/left/syetem_management.png)}
        .source dt{background-image:url(__PUBLIC__/images/left/source.png)}
        .statistics dt{background-image:url(__PUBLIC__/images/left/statistics.png)}
        .leftsidebar_box dl dd:last-child{padding-bottom:10px;}
    </style>

</head>

<body id="bg">
<div class="header">
    <div class="dl-title">
        <!--<img src="/chinapost/Public/assets/img/top.png">-->
    </div>
    <div class="dl-log">欢迎您，<span class="dl-log-user"><?php echo ($name); ?></span><a href="<?php echo U('Index/tuichu');?>" title="退出系统" class="dl-log-quit">[退出]</a>
    </div>
</div>


<div class="container">

    <div class="leftsidebar_box">
        <div class="line"></div>
        <dl class="system_log">
            <dt onClick="changeImage()">系统管理</dt>
            <dd><a target='output' href="<?php echo U('User/index');?>">用户管理</a></dd>
            <!--<dd><a target='output' href="<?php echo U('User/index');?>">角色管理</a></dd>
            <dd><a target='output' href="<?php echo U('User/index');?>">权限管理</a></dd> -->
            <dd><a target='output' href="<?php echo U('Index/tlog');?>">操作记录</a></dd>
        </dl>

        <dl class="custom">
            <dt onClick="changeImage()">活动管理</dt>
            <dd class="first_dd"><a target='output' href="<?php echo U('Activity/index');?>">活动类型管理</a></dd>
            <?php if(is_array($activity)): $i = 0; $__LIST__ = $activity;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><dd><a target='output' href="<?php echo U('Activity/fen');?>?id=<?php echo ($vo["id"]); ?>"><?php echo ($vo["describe"]); ?>列表</a></dd><?php endforeach; endif; else: echo "" ;endif; ?>
        </dl>
            <?php foreach( $activity as $keys => $values ){ ?>
            <dl class="cloud">
                <dt><?php echo $values['describe'] ?>数据</dt>
                <?php foreach($values['describes'] as $k => $v ){?>
                <dd class="first_dd"><a target='output'  href="<?php echo '../Data/index?data='.$values['table'][$k].'&id='.$values['id']; ?>"><?php echo $v; ?></a></dd>
                <?php } ?>
            </dl>
            <?php } ?>
        <dl class="cloud">
            <dt onClick="changeImage()">街市腊无</dt>
            <dd class="first_dd"><a target='output' href="<?php echo U('Fenlei/index');?>">总分类列表</a></dd>
            <dd class="first_dd"><a target='output' href="<?php echo U('Merchant/index');?>">商家列表</a></dd>
            <dd class="first_dd"><a target='output' href="<?php echo U('Merchant/add');?>">添加商家</a></dd>
        </dl>
        <!--
        <dl class="channel">
            <dt>渠道管理</dt>
            <dd class="first_dd"><a href="#">渠道主页</a></dd>
            <dd><a href="#">渠道标准管理</a></dd>
            <dd><a href="#">系统通知</a></dd>
            <dd><a href="#">渠道商管理</a></dd>
            <dd><a href="#">渠道商链接</a></dd>
        </dl>

        <dl class="app">
            <dt onClick="changeImage()">APP管理</dt>
            <dd class="first_dd"><a href="#">App运营商管理</a></dd>
            <dd><a href="#">开放接口管理</a></dd>
            <dd><a href="#">接口类型管理</a></dd>
        </dl>
        <dl class="cloud">
            <dt>大数据云平台</dt>
            <dd class="first_dd"><a href="#">平台运营商管理</a></dd>
        </dl>
        <dl class="syetem_management">
            <dt>系统管理</dt>
            <dd class="first_dd"><a href="#">后台用户管理</a></dd>
            <dd><a href="#">角色管理</a></dd>
            <dd><a href="#">客户类型管理</a></dd>
            <dd><a href="#">栏目管理</a></dd>
            <dd><a href="#">微官网模板组管理</a></dd>
            <dd><a href="#">商城模板管理</a></dd>
            <dd><a href="#">微功能管理</a></dd>
            <dd><a href="#">修改用户密码</a></dd>
        </dl>
        <dl class="source">
            <dt>素材库管理</dt>
            <dd class="first_dd"><a href="#">图片库</a></dd>
            <dd><a href="#">链接库</a></dd>
            <dd><a href="#">推广管理</a></dd>
        </dl>
        <dl class="statistics">
            <dt>统计分析</dt>
            <dd class="first_dd"><a href="#">客户统计</a></dd>
        </dl>
         -->
    </div>
</div>

<iframe id='frame0' name='output' style="position:absolute; left:9%; top:4%; width:91%; height:98%"></iframe>
<script src="__PUBLIC__/js/adv.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
<script type="text/javascript">
    $(".leftsidebar_box dt").css({"background-color":"#3992d0"});
    $(".leftsidebar_box dt img").attr("src","__PUBLIC__/images/left/select_xl01.png");
    $(function(){
        $(".leftsidebar_box dd").hide();
        $(".leftsidebar_box dt").click(function(){
            $(".leftsidebar_box dt").css({"background-color":"#3992d0"})
            $(this).css({"background-color": "#317eb4"});
            $(this).parent().find('dd').removeClass("menu_chioce");
            $(".leftsidebar_box dt img").attr("src","__PUBLIC__/images/left/select_xl01.png");
            $(this).parent().find('img').attr("src","__PUBLIC__/images/left/select_xl.png");
            $(".menu_chioce").slideUp();
            $(this).parent().find('dd').slideToggle();
            $(this).parent().find('dd').addClass("menu_chioce");
        });
    })
</script>

</body>
</html>